package com.hzncc.flowable_diboot.payment.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.iam.entity.IamUser;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.payment.entity.PaymentContract;
import com.hzncc.flowable_diboot.payment.entity.SapPaymentContract;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* sap合同收款 VO定义
* @author MyName
* @version 1.0
* @date 2024-10-29
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class SapPaymentContractListVO extends SapPaymentContract  {
private static final long serialVersionUID = 1549782978958458900L;

    /**
    * 租户 关联信息
    */
    @BindField(entity = IamTenant.class, field = "name", condition = "this.tenant_id = id")
    private String tenantIdLabel;

    /**
    * 创建人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by = id")
    private String createByLabel;

    /**
    * 更新人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by = id")
    private String updateByLabel;

    /**
     * 收款时间
     */
    @BindField(entity = PaymentContract.class,field = "receivedTime",condition = "this.payment_contract_id = id")
    private LocalDateTime receivedTime;

    private String salesEmployeeId;

    private String salesEmployeeName;

    private String salesArea;

}